Open
Conversation
… the LLM In a galaxy with hundreds of bots, public chat and other high-volume notifications can quickly consume context budget. This adds a FILTER_NOTIFICATIONS env var that accepts a comma-separated list of notification categories (chat, dm, broadcast, combat, trade, info, system) to exclude from the LLM prompt. Filtered notifications still appear in terminal output. Default behavior is unchanged (no filtering). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FILTER_NOTIFICATIONSenv var to control which notification categories are excluded from the LLM contextFILTER_NOTIFICATIONS=chatchat,dm,broadcast,combat,trade,info,systemMotivation
In a galaxy with 300+ automated bots loudly announcing their every move, public chat floods the context window. This lets operators filter out noise while preserving game-relevant notifications like DMs and system messages.
Test plan
FILTER_NOTIFICATIONSset — all notifications should reach the LLM (unchanged behavior)FILTER_NOTIFICATIONS=chat— public chat should appear in terminal but not in LLM contextFILTER_NOTIFICATIONS=chat,trade— both categories filtered from LLMFILTER_NOTIFICATIONS=""— equivalent to no filtering🤖 Generated with Claude Code